﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterPage.master" AutoEventWireup="true"
    CodeFile="ChargeEmp.aspx.cs" Inherits="Train_ChargeEmp" %>

<%@ Register Src="../Control/DSelYearMonth.ascx" TagName="DSelYearMonth" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Titile" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Content" runat="Server">
    <infolight:webdatasource id="Master" runat="server" autoapply="True" webdatasetid="WMaster"
        datamember="View_ChargeEmp">
    </infolight:webdatasource>
    <infolight:webdatasource id="WEmp" runat="server" selectalias="Usasdb" selectcommand="SELECT     &#13;&#10;Employees.EmployeeID, &#13;&#10;Employees.EmpName, &#13;&#10;CompanyJob.JobName, &#13;&#10;Department.DepartmentName&#13;&#10;FROM         &#13;&#10;Employees INNER JOIN&#13;&#10;                      Department ON Employees.DepartmentId = Department.DepartmentId                   INNER JOIN&#13;&#10;                      CompanyJob ON Employees.JobId = CompanyJob.JobId&#13;&#10;WHERE     (Employees.EmpStatus = 1)">
    </infolight:webdatasource>
    <table cellpadding="0" cellspacing="5" class="TbSearch">
        <tr>
            <td style="width: 40px">
                <asp:Label ID="Label5" runat="server" Text="员工:"></asp:Label>
            </td>
            <td>
                <infolight:webrefval id="QueryEmp" runat="server" allowadddata="False" bindingtext=""
                    bindingvalue='<%# Bind("EmployeeID") %>' buttonimageurl="../Image/refval/RefVal.gif"
                    databindingfield="EmployeeID" datasourceid="WEmp" datatextfield="EmpName" datavaluefield="EmployeeID"
                    multilanguage="False" postbackbutonclick="False" readonly="False" resxdataset=""
                    resxfilepath="" updatepanelid="" usebuttonimage="True" width="161px">
                    <columns>
                                <InfoLight:WebRefColumn ColumnName="EmployeeID" HeadText="员工编号" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="EmpName" HeadText="员工姓名" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="JobName" HeadText="职务" Width="100" />
                                <InfoLight:WebRefColumn ColumnName="DepartmentName" HeadText="部门名称" Width="100" />
                            </columns>
                </infolight:webrefval>
            </td>
            <td style="width: 40px">
                <asp:Label ID="Label22" runat="server" Text="日期:"></asp:Label>
            </td>
            <td>
                <uc3:DSelYearMonth ID="DSelYearMonth1" runat="server" EndOffsetYear="1" StartOffsetYear="1" />
            </td>
            <td style=" text-align:right">
                <span class="roundbtn">
                    <asp:LinkButton ID="btnSearch" runat="server" Text=" 查 询 " OnClick="btnSearch_Click"></asp:LinkButton>
                </span>&nbsp; &nbsp; &nbsp; &nbsp; <span class="roundbtn">
                    <asp:LinkButton ID="btnClear" runat="server" Text=" 清  除 " OnClick="btnClear_Click"></asp:LinkButton>
                </span>&nbsp; &nbsp; &nbsp; &nbsp;
            </td>
        </tr>
    </table>
    <infolight:webgridview id="wgvMaster" runat="server" cellpadding="5" datasourceid="Master"
        forecolor="#333333" width="100%" aborticonurl="../Image/UIPics/Abort.gif" addiconurl="../Image/UIPics/Add.gif"
        applyiconurl="../Image/UIPics/Apply.gif" canceliconurl="../Image/UIPics/Cancel.gif"
        mouseoveraborticonurl="../Image/UIPics/Abort2.gif" mouseoveraddiconurl="../Image/UIPics/Add2.gif"
        mouseoverapplyiconurl="../Image/UIPics/Apply2.gif" mouseovercanceliconurl="../Image/UIPics/Cancel2.gif"
        mouseoverokiconurl="../Image/UIPics/OK2.gif" mouseoverqueryiconurl="../Image/UIPics/Query2.gif"
        okiconurl="../Image/UIPics/OK.gif" queryiconurl="../Image/UIPics/Query.gif" headerstylewrap="False"
        backcolor="White" bordercolor="White" borderstyle="Groove" borderwidth="2px"
        totalactive="True" totalcaption="总计:" createinnernavigator="False">
        <pagersettings mode="NumericFirstLast" />
        <footerstyle forecolor="Red" font-bold="True"></footerstyle>
        <navcontrols>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/add2.gif" ControlText="add" ControlName="Add" ControlType="Image" ImageUrl="../image/uipics/add.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/ok2.gif" ControlText="Insert" ControlName="OK" ControlType="Image" ImageUrl="../image/uipics/ok.gif"></InfoLight:ControlItem>
<InfoLight:ControlItem ControlVisible="True" Size="25" MouseOverImageUrl="../image/uipics/cancel2.gif" ControlText="cancel" ControlName="Cancel" ControlType="Image" ImageUrl="../image/uipics/cancel.gif"></InfoLight:ControlItem>
</navcontrols>
        <columns>
                <asp:TemplateField>
                    <itemtemplate>
<center>
<img alt="查看明细" style="cursor:pointer;" onclick="javascript:window.open('ChargeEmpDetail.aspx?empid=<%#Eval("employeeid") %>','','top=200,left=200,height=600,width=500,status=no,toolbar=no,menubar=no,location=no,scrollbars=yes')" src="../Image/UIPics/(10,07).png" /></center>
</itemtemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="employeeid" HeaderText="员工编号" SortExpression="employeeid" />
                <asp:BoundField DataField="empname" HeaderText="员工姓名" SortExpression="empname" />
                <asp:BoundField DataField="money" HeaderText="费用总计" SortExpression="money" />
</columns>
        <rowstyle backcolor="#EFF3FB"></rowstyle>
        <editrowstyle backcolor="#2461BF"></editrowstyle>
        <selectedrowstyle backcolor="#D1DDF1" forecolor="#333333" font-bold="True"></selectedrowstyle>
        <pagerstyle backcolor="LightBlue" forecolor="White" horizontalalign="Center"></pagerstyle>
        <headerstyle backcolor="DeepSkyBlue" forecolor="White" font-bold="True"></headerstyle>
        <alternatingrowstyle backcolor="White" bordercolor="White"></alternatingrowstyle>
        <totalcolumns>
                <InfoLight:GridViewTotalItem FieldName="money" />
            </totalcolumns>
    </infolight:webgridview>
</asp:Content>
